package com.kongjs.application.service;

import com.kongjs.application.model.dto.*;
import com.kongjs.application.model.entity.Permissions;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.access.prepost.PreAuthorize;

import java.util.List;


public interface IPermissionsService extends IService<Permissions> {

    boolean save(SavePermissionDTO dto);


    boolean remove(Long id);


    boolean update(UpdatePermissionDTO dto);


    QueryPermissionDTO query(Long id);


    List<QueryPermissionDTO> queryList();


    List<QueryPermissionDTO> trees();


    PageDTO<QueryPermissionDTO> page(PageQueryDTO dto, QueryPermissionParamDTO paramDTO);
}
